package com.jyx.spring.action.service.impl;

import com.jyx.spring.action.service.IPoem;

public class PerformerOfPoeticJuggler extends PerformerOfJuggler {

	
	/** 吟唱者对象 */
	private IPoem poem;
	
	/**
	 * 构造方法：实例化beanBags,poem数据
	 * @param beanBags
	 */
	 public PerformerOfPoeticJuggler(int beanBags,IPoem poem) {
		super(beanBags);
		this.poem = poem;
	 }
	 
	 @Override
	 public void perform(){
		 super.perform();
		 System.out.println("While reciting ....");
		 poem.recite();
	 }
	 
}
